<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMergeOrdersTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('merge_orders', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->string('order_no', 64)->comment('订单号');
            $table->integer('order_amount')->comment('订单金额');
            $table->string('status', 16)->default(\App\Enums\OrderStatus::NOT_PAY)->comment('订单状态');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('merge_orders');
    }
}
